import axios from 'axios'
import consts from '../common/consts'
//申请奖牌证书

// 生成奖牌证书 - 提交
export function createCertificate(catid, data) {
    return axios.post(consts.baseUrl + 'create_certificate.php?catid=' + catid, data)
}

// 申请奖牌证书 - 获取品牌详情
export function getCertificate(catid, data) {
    data = Object.assign({
        action: 'm_get_bangdan_brand_detail'
    }, data)
    return axios.post(consts.baseUrl + 'create_certificate.php?catid=' + catid, data)
}